import Vue from 'vue';
import Vuex from 'vuex';
import mutations from "./mutations";
import getters from "./getters";
import actions from "./actions";

Vue.use(Vuex);

const state = {
  userInfo: {}, //用户信息
  isCollapse: false,
  routeList: [{name: "个人中心", path: "/personalCenter"}],
};

export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions
});
